package com.yao.sdk.net;

import android.util.Log;

/**
 * Created by xiaolong on 2015/12/2.
 * 监控Network模块的日志情况
 */
public class NetWorkConsole implements NetWorkListener{

    @Override
    public void onResponse( ResponseInfo responseInfo) {
        Log.d("NetWorkConsole", "url-->" + responseInfo.url + "  isOk-->" + responseInfo.isOk);
        if (!responseInfo.isOk) {
            Log.d("zwj", ".......errorInfo" + responseInfo.error.errorInfo);
            Log.d("NetWorkConsole", "errorInfo-->" + responseInfo.error.errorInfo);
        } else {
            Log.d("NetWorkConsole", "content-->" + responseInfo.content);
        }
    }
}
